#ifndef _HELPER_H_
#define _HELPER_H_

#include "consts.h"
#include "transfer.h"

void paper_info_create(struct paper_info_t * paper_info, char * author, char * title, char * file_name);
void paper_info_error_create(struct paper_info_t * paper_info, char * msg);

void print_buffor(char * buffor, int size);

void create_error(struct error_info_t * info, char * msg);
void create_no_error(struct error_info_t * info);

void create_block(block_t * block, int paper_id, char * data, int size);
void create_error_block(block_t * block, char * message);

void create_block_request(block_request_t * request, int paper_id, int block_id);


#endif
